/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.constant.Constant;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 区域Entity
 * @author zad
 * @version 2018-01-25
 */
public class EmsArea extends DataEntity<EmsArea> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 区域名称
	private String code;		// 区域短码
	private String status;		// 是否启用 默认为1,启用
	
	public EmsArea() {
		super();
		this.status = Global.YES;
	}

	public EmsArea(String id){
		super(id);
	}

	@Length(min=1, max=64, message="区域名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=4, message="区域短码长度必须介于 1 和 4 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=1, max=2, message="是否启用长度必须介于 1 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}